maven手动添加jar包,错误 Failed to execute goal org.apache.maven.plugins:maven |
您所在的位置:网站首页 › maven 手动添加jar包 › maven手动添加jar包,错误 Failed to execute goal org.apache.maven.plugins:maven |
安装时提示错误: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (default-cli) on project standalone-pom: Error installing artifact 'jdiff:jdiff:jar': Failed to install artifact jdiff:jdiff:jar:1.0.9: /home/hadoop/下载 (是一个目录) -> [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 修改后,记得-Dfile是要写jar包的详细位置噢~ 不要像我这样糊涂。 修改后: hadoop@ThinkPad-X220-Tablet:~$ mvn install:install-file -Dfile=/home/hadoop/下载/jdiff-1.0.9.jar -DgroupId=jdiff -DartifactId=jdiff -Dversion=1.0.9 -Dpackaging=jar -DgeneratePom=true [INFO] Scanning for projects... [INFO] [INFO] ------------------< org.apache.maven:standalone-pom >------------------- [INFO] Building Maven Stub Project (No POM) 1 [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom --- [INFO] Installing /home/hadoop/下载/jdiff-1.0.9.jar to /home/hadoop/.m2/repository/jdiff/jdiff/1.0.9/jdiff-1.0.9.jar [INFO] Installing /tmp/mvninstall6285495980608602341.pom to /home/hadoop/.m2/repository/jdiff/jdiff/1.0.9/jdiff-1.0.9.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ 就好啦~ |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |